﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using unTroublemakerUI;

namespace unTroublemaker.Tests
{
    [TestClass]
    public class SettingsTests
    {
        [TestMethod, TestCategory("Integration")]
        public void CanCRUDStringSetting()
        {
            var settings = new Settings();
            var uniqueValue = "value" + Guid.NewGuid();

            settings.Save("setting", uniqueValue);

            Assert.AreEqual(settings.Get("setting"), uniqueValue);

            settings.Remove("setting");

            Assert.IsNull(settings.Get("setting"));
        }
    }
}
